import request from '@/utils/request'

// 查询技能竞赛列表
export function listRace(data) {
  return request({
    url: '/coordination/race/list',
    method: 'post',
    data: data
  })
}

// 查询技能竞赛详细
export function getRace(id) {
  return request({
    url: '/coordination/race/' + id,
    method: 'get'
  })
}

// 新增技能竞赛
export function addRace(data) {
  return request({
    url: '/coordination/race',
    method: 'post',
    data: data
  })
}

// 修改技能竞赛
export function updateRace(data) {
  return request({
    url: '/coordination/race',
    method: 'put',
    data: data
  })
}

// 删除技能竞赛
export function delRace(id) {
  return request({
    url: '/coordination/race/' + id,
    method: 'delete'
  })
}
// 统计技能竞赛
export function postRaceCount(data) {
  return request({
    url: '/coordination/race/count',
    method: 'post',
    data: data
  })
}